/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package jpapractica;

import java.util.List;
import javax.persistence.*;

@Entity
public class Soundtrack {

    @Id int id;
    String picture;
    @OneToMany
    List<Song> songs;
    
    public Soundtrack(){}
    public Soundtrack(int id){
    this.id = id;}
    public Soundtrack(int id, String picture){
        this.id=id;
        this.picture=picture;
    }
        public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getPicture() {
        return picture;
    }

    public void setPicture(String picture) {
        this.picture = picture;
    }

    public List<Song> getSongs() {
        return songs;
    }

    public void setSongs(List<Song> songs) {
        this.songs = songs;
    }

    
}
